import axios from "@/api/request"



const cost = {
    add: "/back/cost/add",
    update: "/back/cost/update",
    delete: "/back/cost/delete",
    findById: "/back/cost/findById",
    findAll: "/back/cost/findAll",
    search: "/back/cost/search",
}



const api = {

    cost_add(params) {
        return axios.post(cost.add, params)
    },
    cost_update(params) {
        return axios.post(cost.update, params)
    },
    cost_delete(params) {
        return axios.delete(cost.delete, {params})
    },
    cost_findById(params) {
        return axios.get(cost.findById, {params})
    },
    cost_findAll(params) {
        return axios.get(cost.findAll, {params})
    },
    cost_search(params) {
        return axios.get(cost.search, {params})
    },



}
export default api
